package com.example.springboot_zc.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot_zc.mapper.mydataMapper;
import com.example.springboot_zc.pojo.MyData;
import com.example.springboot_zc.service.mydataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class mydataServiceImpl extends ServiceImpl<mydataMapper, MyData> implements mydataService {
    @Autowired
    mydataMapper mydataMapper;

    public Integer deleteByStu(String stuNum){return mydataMapper.deleteByStu(stuNum);}
    public List<MyData> selectByStu(String stuNUm){return mydataMapper.selectByStu(stuNUm);}

}
